
*******************************************************************************
**** Generates final tables for the papaer
*******************************************************************************

**** Define the main parent directory here
foreach path in "ADD YOUR PATH HERE" {
	capture cd "`path'"
	 if _rc == 0  global superdir "`path'"
}


cd "$outputdir_tab"
local txtfiles: dir . files "*.txt"
foreach txt in `txtfiles' {
    cap erase `"`txt'"'
}


**** Housekeeping
do "$superdir\code\stata\build\Settings.do"


set more off

**** Appendix Figures 
do "$codedir\Figure_H_1.do"
do "$codedir\Figure_H_2.do"		
do "$codedir\Figure_H_3.do"
do "$codedir\Figure_H_4.do"		
do "$codedir\Figure_H_5.do"
do "$codedir\Figure_H_6.do"
do "$codedir\Figure_H_7.do"
do "$codedir\Figure_H_8.do"
do "$codedir\Figure_H_9.do"
do "$codedir\Figure_H_10.do"
do "$codedir\Figure_H_11.do"
do "$codedir\Figure_H_12.do"
do "$codedir\Figure_H_13.do"
do "$codedir\Figure_H_14.do"		
do "$codedir\Figure_H_18.do"
do "$codedir\Figure_H_19.do"	


**** Appendix Tables 
do "$codedir\Table_H_1.do"
do "$codedir\Table_H_2.do"
do "$codedir\Table_H_3.do"
do "$codedir\Table_H_4.do"
do "$codedir\Table_H_5.do"
do "$codedir\Table_H_6.do"			
do "$codedir\Table_H_7.do"		
do "$codedir\Table_H_8.do"
do "$codedir\Table_H_9.do"		
do "$codedir\Table_H_10.do"
do "$codedir\Table_H_11.do"
do "$codedir\Table_H_12.do"
do "$codedir\Table_H_13.do"
do "$codedir\Table_H_14.do"
do "$codedir\Table_H_15.do"
do "$codedir\Table_H_16.do"
do "$codedir\Table_H_17.do"
do "$codedir\Table_H_18.do"
do "$codedir\Table_H_20.do"


cd "$outputdir_tab"
local txtfiles: dir . files "*.txt"
foreach txt in `txtfiles' {
    cap erase `"`txt'"'
}


